﻿@model Model.User

@{
    ViewBag.Title = "";
}

@using (Html.BeginForm())
{    
    @Html.ValidationSummary(true)

    <div class="">
        @Html.LabelFor(m => m.Name)
        @Html.EditorFor(m => m.Name)
        @Html.ValidationMessageFor(m => m.Name)
    </div> 
    <div class="">
        @Html.LabelFor(m => m.Email)
        @Html.EditorFor(m => m.Email)
    </div> 
    <div class="double">
        @Html.LabelFor(m => m.Password)
        @Html.EditorFor(m => m.Password)
    </div> 

    <div id="file-uploader">       
        <noscript>          
        
        </noscript>         
    </div>
    

    <script type="text/javascript">
        var uploader = new qq.FileUploader({
            element: document.getElementById('file-uploader'),
            action: '@Url.Action(MVC.Admin.SaveDynamicPicture())',
            allowedExtensions: ['jpg', 'jpeg', 'png', 'gif'],
            debug: true,
            onSubmit: function (id, fileName) { },
            onComplete: function (id, fileName, responseJSON) { }
        });
    </script>


    
    <input type="submit" value="Ajouter" class="submit" />
    <button onclick="window.location.href="@Url.Action(MVC.Admin.UserMessages())>Annuler</button>
 }
 